package com.lovo.entity;

import lombok.Data;
import org.springframework.data.annotation.Id;
import org.springframework.data.elasticsearch.annotations.Document;
import org.springframework.data.elasticsearch.annotations.Field;
import org.springframework.data.elasticsearch.annotations.FieldType;

@Data
@Document(indexName = "listings_goods")
public class SysCommodityEntity {

    @Id
    @Field(type = FieldType.Keyword)
    private Integer productid;

    @Field(type = FieldType.Keyword)
    private String pCode;

    @Field(type = FieldType.Keyword)
    private String pName;

    @Field(type = FieldType.Keyword)
    private String pBatch;

    @Field(type = FieldType.Keyword)
    private String pType;

    @Field(type = FieldType.Keyword)
    private Integer pPrice;

    @Field(type = FieldType.Keyword)
    private String pState;

    @Field(type = FieldType.Keyword)
    private Integer sellPrice;

    @Field(type = FieldType.Keyword)
    private String imgPath;

    @Field(type = FieldType.Text)
    private String info;
}
